package homework.day10;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Test04 {
    public static void main(String[] args) {
        Date d=new Date();
        d.setDate(26);
        d.setMonth(4);
        d.setYear(2016-1900);
        int mouth=d.getMonth();
        int date=d.getDate();
        int year=d.getYear()+1900;
        System.out.println(year+"-"+mouth+"-"+date);
        if ((year%400==0)||(year%4==0&&year%100!=0))
        {System.out.println(year+"是闰年");}
        else
        {System.out.println(year+"不是闰年");

        }
    }
}
